fix scaling issues